home *** CD-ROM | disk | FTP | other *** search
/ CICA 1993 April / CICA MS Windows - April 1993.iso / unzipped / toolbook / piemnu25 / piemnu25.tbk (.txt) < prev    next >
Asymetrix ToolBook File  |  1992-10-15  |  53KB  |  489 lines

  1. System
  2. Arial
  3. System
  4. mes New Roman
  5. Arial
  6. Arial
  7. Arial
  8. mes New Roman
  9. enterBook
  10. enterBook
  11. sizeToPage
  12. justOpen
  13. System
  14. -- *    PIE MENU implementation v. 2.5
  15. HPaolo Tosolini - Oct '92        *
  16. -- * 
  17. -- *    
  18. suggestion 
  19. welcome.     Please mail 
  20. -- * 
  21. -- *    
  22. -- *    via Bembo, 5
  23. 34015
  24. Muggia (TS)
  25. -- *    Italy
  26. -- *    tel. +39 40 275030
  27. -- *    fax. +39 40 311850
  28. -- *    email: tosolini@uts340.univ.trieste.
  29. --    Variable initialization
  30. 4Xp, Yp, Xq, Yq
  31. enterBook
  32. enterBook
  33. reader
  34. sizeToPage
  35. enterBook
  36. enterBook
  37. reader
  38. sizeToPage
  39. justOpen
  40. PieMenu
  41. Action
  42. PREVIOUS
  43.  EXTIOUS
  44. eMenu
  45. txClassName
  46. GoIndex
  47. stokecolor
  48. 0,0,0
  49. Index
  50. GoPrev
  51. stokecolor
  52. 0,0,0
  53. Previsss
  54. GoBack
  55. stokecolor
  56. 0,0,0
  57. GoNext
  58. stokecolor
  59. 0,0,0
  60. Introduction
  61.                PIE MENU v. 2.5  by  Paolo Tosolini - October '92
  62. This is the new release of the Pie pop up Menu implemented in Toolbook using Openscript.
  63.  Now you can navigate though the pages of this book without any menu appears on the screen. Just click the RIGHT mouseButton and (while keeping pressed it) move the pointer to : 
  64.             RIGHT     for NEXT PAGE
  65.             LEFT     for PREVIOUS PAGE
  66.             UP     for page called "Index"
  67.             DOWN     for BACK
  68. However, if you keep pressed the RIGHT mouseButton for more than half second, the Pie Menu will be visible and you can see how it works while you move the pointer around it.
  69. The action of changing page starts when you release the mouseButton.
  70. You can make the PieMenu disapper just releasing the mouseButton in the centre of the Pie........
  71. :PHYSSIZE
  72. Index
  73.      F    l    
  74. txClassName
  75. This page is called INDEX and could be the summary page of your book
  76. The PieMenu includes the option to go to a page called "Index".
  77. To change this option, you should replace the text "Index" in the 
  78. PieMenu field and the <go to page "Index"> script in the 
  79. RIGHT buttonUp handler of the background.
  80. The textFields of the PieMenu are called "GoNext, GoPrev, GoBack,
  81. GoIndex". The entire group is called "PieMenu".
  82. To avoid undesired flickering of the commands, the DrawDirect property of the PieMenu components are set to False. For better visual results, in this book there are no DrawnDirect objects.
  83. New improvements for the coming version:
  84. The PieMenu v.2.5 may result useful to navigate in a book in a linear way.
  85. Four choices are not enough to substitute completely a traditional pull down menu.
  86. In my next release I'll try to implement a kind of hierarchy of the commands .
  87.                                          
  88. GoPrev
  89. stokecolor
  90. 0,0,0
  91. Previsss
  92. GoIndex
  93. stokecolor
  94. 0,0,0
  95. Index
  96. GoNext
  97. stokecolor
  98. 0,0,0
  99. GoBack
  100. stokecolor
  101. 0,0,0
  102. PieMenu
  103. txClassName
  104. GoIndex
  105. stokecolor
  106. 0,0,0
  107. Index
  108. GoPrev
  109. stokecolor
  110. 0,0,0
  111. Previsss
  112. GoBack
  113. stokecolor
  114. 0,0,0
  115. GoNext
  116. stokecolor
  117. 0,0,0
  118. PieMenu
  119. txClassName
  120. GoIndex
  121. stokecolor
  122. 0,0,0
  123. Index
  124. GoPrev
  125. stokecolor
  126. 0,0,0
  127. Previsss
  128. GoBack
  129. stokecolor
  130. 0,0,0
  131. GoNext
  132. stokecolor
  133. 0,0,0
  134. GoPrev
  135.     stokecolor
  136. 0,0,0
  137. Previsss
  138. GoIndex
  139. stokecolor
  140. 0,0,0
  141. Index
  142. GoNext
  143. stokecolor
  144. 0,0,0
  145. GoBack
  146. stokecolor
  147. 0,0,0
  148. Index
  149. Suggestions
  150. The Pie Menu is useful when you want the user to concentrate his attention only
  151. to the context of the book, without displaying buttons on the screen. 
  152. The Pie Menu script is written in the background.
  153. The variable's initialization is written in the book.
  154. The Pie Menu is kept automatically in the first layer.
  155. Hotword   like this works with the LEFT mouseButton.
  156. To create your own application, you should copy, in order,  the following parts:
  157.                                      
  158. - the field called "Action" in the background (or backgrounds)             
  159. - the "PieMenu" group in each background of your book (and hide it)    
  160. - book and background scripts                                        
  161. Then send an EnterBook from the command Window to reset the variables. 
  162. I suggest anyway to do these operations once your book is completed.nce your book is completed.......ed.....
  163. "Hotwords work 
  164. fthe leftMouseButton. "\
  165.             & "The Pie Menu 
  166. *rightMouseButton" 
  167. f"OK"
  168. uttonDown
  169. rightButtonDown
  170. buttonDown
  171. buttonStillDown
  172. buttonDown
  173. Hotwords work with the leftMouseButton. 
  174. The Pie Menu with the rightMouseButton
  175. rightButtonDown
  176. buttonStillDown
  177. PieMenu
  178.     txClassName
  179. GoIndex
  180. stokecolor
  181. 0,0,0
  182. Index
  183. GoPrev
  184. stokecolor
  185. 0,0,0
  186. Previsss
  187. GoBack
  188. stokecolor
  189. 0,0,0
  190. GoNext
  191. stokecolor
  192. 0,0,0
  193. Author
  194. I look forward to hearing from you !
  195. Your suggestions, comments and criticisms are very helpful for me.
  196. They are new energy for everybody's brainstorming to find new interface solutions.
  197. Please, write to:
  198. Paolo Tosolini - via Bembo, 5 - 34105 Muggia (TS) - Italy
  199. tel. +39-40-275030  fax. +39-40-311850   email: tosolini@uts340.univ.trieste.it
  200. REFERENCES
  201. [  Callahan J., Hopkins D., Weiser M.,  Shneiderman B. (1988)
  202. "An empirical comparison of Pie versus Linear Menus", Proceedings of CHI' 88 ]
  203. [ Kurtenbach P.G., Sellen A. J. e Buxton W. A. S. (1992) ," An Empirical Evaluation of some Articulatory and Cognitive Aspects of Marking Menus", to print on Journal HCI January 1993 ]
  204.  it to every page of your application.
  205. I suggest anyway to do these operations once your book is completed.
  206. GoNext
  207. PieMenu
  208. 0,0,0
  209. GoPrev
  210. PieMenu
  211. 0,0,0
  212. GoIndex
  213. PieMenu
  214. 0,50,100
  215. GoBack
  216. PieMenu
  217. 0,0,0
  218. rightButtonUp
  219. PieMenu
  220. Action
  221. PREVIOUS
  222. Action
  223. Action
  224. INDEX
  225. Action
  226. Index
  227. PieMenu
  228. LeavePage
  229. pieMenu
  230. pieMenu
  231. ClearPie
  232. GoNext
  233. PieMenu
  234. 0,0,0
  235. GoPrev
  236. PieMenu
  237. 0,0,0
  238. GoIndex
  239. PieMenu
  240. 0,0,0
  241. GoBack
  242. PieMenu
  243. 0,0,0
  244. ButtonUp
  245. pieMenu
  246. Introduction
  247. Suggestions
  248. Author
  249. Printer Set&up...
  250. &Print Page
  251. Author
  252. I look forward to hearing from you !
  253. Your suggestions, comments and criticisms are very helpful for me.
  254. They are new energy for everybody's brainstorming to find new interface solutions.
  255. Please, write to:
  256. Paolo Tosolini - via Bembo, 5 - 34105 Muggia (TS) - Italy
  257. tel. +39-40-275030  fax. +39-40-311850   email: tosolini@uts340.univ.trieste.it
  258. REFERENCES
  259. [  Callahan J., Hopkins D., Weiser M.,  Shneiderman B. (1988)
  260. "An empirical comparison of Pie versus Linear Menus", Proceedings of CHI' 88 ]
  261. [ Kurtenbach P.G., Sellen A. J. e Buxton W. A. S. (1992) ," An Empirical Evaluation of some Articulatory and Cognitive Aspects of Marking Menus", to print on Journal HCI January 1993 ]
  262.  it to every page of your application.
  263. I suggest anyway to do these operations once your book is completed.
  264. PieMenu
  265. txClassName
  266. GoIndex
  267. stokecolor
  268. 0,0,0
  269. Index
  270. GoPrev
  271. ,    stokecolor
  272. 0,0,0
  273. h    @    e    
  274. Previsss
  275. GoBack
  276.     stokecolor
  277. 0,0,0
  278. GoNext
  279. stokecolor
  280. 0,0,0
  281. a@X@2
  282. i@X@U@]@
  283. --     the 
  284. called "Action" 
  285. Background shows 
  286. (user which action
  287. --     he did 
  288. IPieMenu
  289. bringtoFront
  290. rightbuttonDown loc
  291. "pieMenu" 
  292. Xp-660,Yp-640    -- puts 
  293.  where 
  294. mouse 
  295. ClearPie
  296.  commands
  297. "Up"         -- no 
  298.  shown 
  299. ckeeping pressed 
  300. leftMouseButton
  301. Xp-660,Yp-640    -- 
  302.         -- loop 
  303. accelerate refresh 
  304. signed 
  305. loc2 
  306. )        -- detects continuosly 
  307.  -Xp) < 150 ) 
  308. %-Yp) < 150)    -- 
  309. Pie, 
  310. znothing
  311. {-Xp) >= 
  312. x-Yp)        
  313. NEXT angle ?
  314. "GoNext" 
  315. "GoPrev" 
  316. "GoIndex" 
  317. "GoBack" 
  318. PREVIOUS 
  319. BACK 
  320. INDEX 
  321. (keyrightButton) 
  322. "Up"    -- exits 
  323. rightMouseButton 
  324. released
  325. executed 
  326. releasing 
  327. Xp=0 
  328. -- avoids unexpected 
  329.  appearance (i.e. doubleClicking on Toolbook icon)
  330. (Xq-Xp) < 150 ) 
  331. (Yq-Yp) < 150)
  332. centre
  333. (Xq-Xp) >= 
  334. (Yq-Yp)
  335. Xq > Xp
  336. Yq > Yp
  337. LeavePage
  338. ButtonUp
  339.         -- 
  340. Right+Left mousebutton 
  341. enterpage
  342. buttonStillDown
  343. rightButtonUp
  344. rightbuttonDown
  345. LeavePage
  346. ClearPie
  347. ButtonUp
  348. enterpage
  349. Action
  350. background
  351. PieMenu
  352. PieMenu
  353. PieMenu
  354. foreground
  355. paste
  356. 0bringtoFront
  357. rightbuttonDown
  358. pieMenu
  359. !WClearPie
  360. buttonStillDown
  361. pieMenu
  362. pieMenu
  363. !WClearPie
  364. GoNext
  365. PieMenu
  366. 0,50,100
  367. GoPrev
  368. PieMenu
  369. 0,0,0
  370. GoIndex
  371. PieMenu
  372. 0,0,0
  373. GoBack
  374. PieMenu
  375. 0,0,0
  376. GoNext
  377. PieMenu
  378. 0,0,0
  379. GoPrev
  380. PieMenu
  381. 0,50,100
  382. GoIndex
  383. PieMenu
  384. 0,0,0
  385. GoBack
  386. PieMenu
  387. 0,0,0
  388. GoNext
  389. PieMenu
  390. 0,0,0
  391. GoPrev
  392. PieMenu
  393. 0,0,0
  394. GoIndex
  395. PieMenu
  396. 0,0,0
  397. GoBack
  398. PieMenu
  399. 0,50,100
  400. GoNext
  401. PieMenu
  402. 0,0,0
  403. GoPrev
  404. PieMenu
  405. 0,0,0
  406. GoIndex
  407. PieMenu
  408. 0,50,100
  409. GoBack
  410. PieMenu
  411. 0,0,0
  412. rightButtonUp
  413. PieMenu
  414. Action
  415. PREVIOUS
  416. Action
  417. Action
  418. INDEX
  419. Action
  420. Index
  421. PieMenu
  422. LeavePage
  423. pieMenu
  424. pieMenu
  425. ClearPie
  426. GoNext
  427. PieMenu
  428. 0,0,0
  429. GoPrev
  430. PieMenu
  431. 0,0,0
  432. GoIndex
  433. PieMenu
  434. 0,0,0
  435. GoBack
  436. PieMenu
  437. 0,0,0
  438. ButtonUp
  439. pieMenu
  440. Index
  441.     0    V    |    
  442. txClassName
  443. This page is called INDEX and could be the summary page of your book
  444. The PieMenu includes the option to go to a page called "Index".
  445. To change this option, you should replace the text "Index" in the 
  446. PieMenu field and the <go to page "Index"> script in the 
  447. RIGHT buttonUp handler of the background.
  448. The textFields of the PieMenu are called "GoNext, GoPrev, GoBack,
  449. GoIndex". The entire group is called "PieMenu".
  450. To avoid undesired flickering of the commands, the DrawDirect property of the PieMenu components are set to False. For better visual results, in this book there are no DrawnDirect objects.
  451. New improvements for the coming version:
  452. The PieMenu v.2.5 may result useful to navigate in a book in a linear way.
  453. Four choices are not enough to substitute completely a traditional pull down menu.
  454. In my next release I'll try to implement a kind of hierarchy of the commands .
  455.                                          
  456. GoPrev
  457.     stokecolor
  458. 0,0,0
  459. Previsss
  460. GoIndex
  461. stokecolor
  462. 0,0,0
  463. Index
  464. GoNext
  465. stokecolor
  466. 0,0,0
  467. GoBack
  468. stokecolor
  469. 0,0,0
  470. PieMenu
  471. txClassName
  472. GoIndex
  473. stokecolor
  474. 0,0,0
  475. Index
  476. GoPrev
  477. stokecolor
  478. 0,0,0
  479. Previsss
  480. GoBack
  481. stokecolor
  482. 0,0,0
  483. GoNext
  484. stokecolor
  485. 0,0,0
  486. c%?Ky
  487. Ak>^U
  488. `uomj
  489.